package main.java.study.step02;

/**
 * @author liuwenxiu
 * @Description: 值传递/引用传递demo
 * @date 2022-7-13 17:08
 */
public class TransferDemo {

    public static void transfer(int m,String n){
        m = 10;
        n = "sakura";
    }
    
    public static void main(String[] args) {
        int a = 1;
        String b = "tom";
        transfer(a,b);
        System.out.println(a);
        System.out.println(b);
    }
}
